import { lazy } from 'react';
import { Route, Routes } from 'react-router-dom';

const Home = lazy(() => import('@/views/home'));

const renderRoutes = () => {
	return (
		<>
			<Route path="/" element={<Home />}></Route>
		</>
	);
};

const AppRoutes: React.FC = () => {
	return <Routes>{renderRoutes()}</Routes>;
};

export default AppRoutes;
